import QtQuick 2.5
import QtQuick.Controls 2.1
import ".."

MyRectangle
{
    id: myCompass
    height: 60
    width: 60
    radius: 30
    property bool fixedToUp: false
    Rectangle
    {
        height: 50
        width: 50
        radius: 25
        anchors.centerIn: parent
        color: "#EBF5FF"
        Image
        {
            source: "qrc:/Images/compass.png"
            anchors.centerIn: parent
            rotation: myCompass.fixedToUp ?  0 : 360 - SystemBridge.curYaw
        }
    }
}
